package com.sparrow.source.persistense;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author bryceyung
 * @since 2024/12/4
 */
@TableName(value = "ias_account")
@Data
public class IasAccount {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String userName;

    private String password;

    private Integer type;

    private Integer status;

    private Boolean firstLogin;

    private Boolean deleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private String token;

}
